export const RESERVATION_ORDER_STATE = {
  WAIT_SERVICE: 2,
  CLOSE: 4,
  WAIT_PAY: 1,
  FINISH: 3,
  CANCEL: 5
}

export const RESERVATION_ORDER_STATE_TEXT = {
  [RESERVATION_ORDER_STATE.WAIT_SERVICE]: '待服务',
  // [RESERVATION_ORDER_STATE.CLOSE]: '已关闭',
  [RESERVATION_ORDER_STATE.WAIT_PAY]: '待支付',
  [RESERVATION_ORDER_STATE.FINISH]: '已完成',
  [RESERVATION_ORDER_STATE.CANCEL]: '已取消'
}
// 预约支付方式，与微信支付和零钱支付不一样
export const RESERVATION_PAY_TYPE = {
  ON_LINE: 1,
  SHOP_PAY: 2
}
export const RESERVATION_PAY_TYPE_TEXT = {
  [RESERVATION_PAY_TYPE.ON_LINE]: '到店支付',
  [RESERVATION_PAY_TYPE.SHOP_PAY]: '在线支付'
}
export const RESERVATION_PAY_TYPE_LIST = [
  {
    label: RESERVATION_PAY_TYPE_TEXT[RESERVATION_PAY_TYPE.ON_LINE],
    value: RESERVATION_PAY_TYPE.ON_LINE
  },
  {
    label: RESERVATION_PAY_TYPE_TEXT[RESERVATION_PAY_TYPE.SHOP_PAY],
    value: RESERVATION_PAY_TYPE.SHOP_PAY
  }
]
// tag颜色映射
export const TAG_MAP = {
  [RESERVATION_ORDER_STATE.WAIT_PAY]: 'danger',
  [RESERVATION_ORDER_STATE.WAIT_SERVICE]: 'danger',
  [RESERVATION_ORDER_STATE.FINISH]: 'success',
  [RESERVATION_ORDER_STATE.CLOSE]: 'info',
  [RESERVATION_ORDER_STATE.CANCEL]: 'info'
}

// 订单支付渠道
export const PAYMENT_METHOD = {
  1: '微信支付',
  2: '余额支付',
  3: '支付宝支付',
  4: '银联支付',
  5: '现金支付',
  6: '花呗支付',
  7: '云闪付支付',
  99: '其他'
}

// 详情支付方式tag颜色映射
export const paymentTagMap = {
  1: 'success',
  2: '',
  3: '',
  4: '',
  5: '',
  6: '',
  7: '',
  99: ''
}
